import http from "@/http";
export const getProductListApi = (
  params: any
): RES<ITableResult<IProductModel>> => http.get("/product/list", { params });

// 获取商品分类信息
export const getProductCateListApi = (params:IProductCateListParams):RES<any> => http.get(`/productCategory/list/${params.parentId}`,{params})

// 根据id删除商品分类
export const removeProductCateApi = (id:number):RES<IProductCateModel> => http.post(`/productCategory/delete/${id}`)